package com.hzhc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.entity.SysOrganization;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.TreeVo;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * <p>
 * 公司组织机构 服务类
 * </p>
 *
 * @author 功不唐捐
 * @since 2024-04-07
 */
public interface SysOrganizationService extends IService<SysOrganization> {
    List<SysOrganization> getSysOrganizationJson(SysOrganization vo);

    List<TreeVo> getOrganizationTree(Long pid);

    List<SysOrganization> getOrganizationListAll(SysOrganization vo);

    ResultUtil<T> saveOrganization(SysOrganization vo);

    ResultUtil<T> updateOrganization(SysOrganization vo);

    ResultUtil<T> deleteOrg(SysOrganization vo);

    ResultUtil<T> checkOrg(SysOrganization vo);
}
